﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wedo.Recognition.Domain.Models;

namespace Wedo.Recognition.Domain.Mapping
{
    public class DisputeApply_Mapping : EntityConfiguration<DisputeApply>
    {
        public DisputeApply_Mapping()
        {
            ToTable("DisputeApply");

            HasRequired(b => b.BankData).WithMany(m => m.DisputeApply).HasForeignKey(b => b.BankDataId);
            Property(s => s.Approver).HasMaxLength(50).HasColumnType("nvarchar");
            Property(s => s.ApplyMan).HasMaxLength(50).HasColumnType("nvarchar");
        }
    }
}
